<template>
  <el-carousel :interval="40000" height='600px' class="my-carousel">
    <el-carousel-item v-for="(item, index) in items" :key="index">
      <div
        class="multi_image_slider_image"
        :style="{'background-image':`url('${item}')`}"
      >
      <!-- http://py7oge10f.bkt.clouddn.com/ -->
      </div>
    </el-carousel-item>
  </el-carousel>
</template>

<script>
export default {
  name: "Carousel",
  props: {
    items: {
      type: Array
    }
  },
  methods: {
    handleRouter(i) {
      console.log(i);
    }
  }
};
</script>

<style lang="scss">
.my-carousel {
  .el-carousel__container {
    height: 100%;
  }
  .el-carousel__indicators{
    display: flex;
    .el-carousel__button{
      width: 20px;
      height: 4px;
    }
  }
}

.multi_image_slider_image {
  width: 100%;
  height: 600px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}
</style>
